﻿using HarmonyLib;
using JSONClass;
using KBEngine;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.UI;
using static UnityEngine.UI.Image;

namespace ncs.lingtian
{
    public partial class LingTianMod
    {
        /// <summary>
        /// 灵感获取速度
        /// </summary>
        [HarmonyPrefix, HarmonyPatch(typeof(Avatar), nameof(Avatar.AddLingGan))]
        public static void Avatar_AddLingGan_Prefix(ref int addNum)
        {
            addNum *= MainMod.lingGan.Value;
            MainMod.Logger.LogInfo($"灵感获取速度：{addNum}=>{MainMod.lingGan.Value * addNum}");
        }

    }
}
